# -*- coding:utf-8 -*-

import os
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class SamplePage(webapp.RequestHandler):
    def get(self):
        self.response.headers['Content-Type'] = 'text/html'
        path = os.path.join(os.path.dirname(__file__), 
                            'mapabc.html')
        self.response.out.write(template.render(path, {}))
        #self.response.out.write(str(os.path.exists(path)))

application = webapp.WSGIApplication([
                                      ('/lucentbus/sample', SamplePage),
                                      ], debug=True)

def main():
    wsgiref.handlers.CGIHandler().run(application)

if __name__ == '__main__':
    main()